set ymd=%date:~0,4%%date:~5,2%%date:~8,2%
set hms=%time:~0,2%%time:~3,2%%time:~6,2%%time:~9,2%
set dt=%ymd%%hms%
mkdir D:\History\"%dt%"
xcopy C:\Users\Administrator\Desktop\Error_Test_Terminal_TE\*.* D:\History\"%dt%"\ /s/h
rd C:\Users\Administrator\Desktop\Error_Test_Terminal_TE\ /s/q
md C:\Users\Administrator\Desktop\Error_Test_Terminal_TE
xcopy F:\Error_Test_Terminal_TE\*.* C:\Users\Administrator\Desktop\Error_Test_Terminal_TE\ /s/h